def common_assert(test_case, expect_result, resp):
    resp.json()
    test_case.assertEqual(expect_result.get('status_code'), resp.status_code)
    test_case.assertEqual(expect_result.get('success'), resp.json().get('success'))
    test_case.assertEqual(expect_result.get('code'), resp.json().get('code'))
    test_case.assertIn(expect_result.get('message'), resp.json().get('message'))